package com.zhang.serviceorder.remote;

import com.zhang.internalcommon.dto.Car;
import com.zhang.internalcommon.dto.ResponseResult;
import com.zhang.internalcommon.response.OrderDriverResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 类功能描述
 *
 * @author Kye
 * @date 2025-04-18
 */
@FeignClient("service-driver-user")
public interface ServiceDriverUserClient {
	@GetMapping("/city-driver/is-available-driver")
	public ResponseResult<Boolean> isAvailableDriver(@RequestParam String cityCode);

	@GetMapping("/get-available-driver/{carId}")
	public ResponseResult<OrderDriverResponse> getAvailableDriver(@PathVariable("carId") Long carId);

	@GetMapping("/car")
	public ResponseResult<Car> getCarById(@RequestParam Long carId);
}
